﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.HumanAffairs.Bases
{
    public interface IBaseRepository
    {
        /// <summary>
        /// 员工登记——查询分页显示
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="Department"></param>
        /// <param name="Job"></param>
        /// <param name="Phone"></param>
        /// <param name="Type"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<BaseDto>> GetBasePageShow(string Name, int Department, int Job, string Phone, int Type, int pageindex = 1, int pagesize = 3);
        /// <summary>
        /// 员工登记——逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteBase(int id);
        /// <summary>
        /// 员工登记——批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteBatchBase(string ids);
        /// <summary>
        /// 员工登记——编辑
        /// </summary>
        /// <param name="baseDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateBase(BaseDto baseDto);
        /// <summary>
        /// 员工登记——添加
        /// </summary>
        /// <param name="baseDto"></param>
        /// <returns></returns>
        Task<int> PostAddBase(BaseDto baseDto);
    }
}
